package com.leading.spring;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * @author chennan
 * @create 2021-05
 */


@SpringBootApplication
@EnableSwagger2
@EnableEurekaClient  //开启注册中心，在服务启动后自动注册到eureka中
@EnableDiscoveryClient  //服务发现
public class DepatmentProviderApplication {
    public static void main(String[] args) {
        SpringApplication.run(DepatmentProviderApplication.class, args);
    }
}
